﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace fazendo_jogo
{
    class Abertura : Cena
    {
        Fundo_da_Tela fundo_de_tela;
        Gerenciador_de_Cena gerenciador;
        int count = 0;
        const int max = 200;

        public Abertura(Game game) : base(game)
        {
            this.fundo_de_tela = new Fundo_da_Tela(Vector2.Zero, Game.Content.Load<Texture2D>(@"Images/bgOpening"));
        }

        protected override void LoadContent()
        {

            base.LoadContent();
        }

        public override void Initialize()
        {
            base.Initialize();
        }
        public override void Update(GameTime gameTime)
        {
            //if (count ++ >= MAX)
            //    Gerenciador_de_Cena.MudarCena(Game);
            base.Update(gameTime);
        }
        public override void Draw(GameTime gameTime)
        {
            spriteBatch.Begin(SpriteSortMode.FrontToBack,BlendState.AlphaBlend);

            this.fundo_de_tela.Draw(spriteBatch, Game.Window.ClientBounds);

            spriteBatch.End();
            base.Draw(gameTime);
        }
    }
}
